package com.xxx.dao;

import com.xxx.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxx.entity.dto.BlogDto;
import com.xxx.entity.query.BlogQuery;
import com.xxx.entity.query.BlogQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xxx
 * @since 2024-11-24
 */

@Mapper
public interface BlogDao extends BaseMapper<Blog> {

    List<BlogDto> selectByPage(@Param("current") Integer current,
                               @Param("size") Integer size);

    List<BlogDto> selectByCondition(BlogQuery blogQuery);
}
